<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>站内消息 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/member.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>
<div class="b-page">
    <Admintemplate file="Home/Public/header"/>

<div class="contentbj">
    <div class="member_body">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="180" valign="top" bgcolor="#f5f5f5">
                    <a href="__WEBURL__/user/index/uavatar">
                        <div class="touxiangarea">
                            <div class="uploadpic"></div>
                            <div class="touxiang"><img src="{$userinfo.uavatar|getUavatar}" alt=""/></div>
                        </div>
                    </a>
                    <h3 class="listtitle">账号管理</h3>
                    <ul class="listcss">
                        <foreach name="usernav" item="un">
                            <li><a href="__WEBURL__/user/index/{$un.link}" class="{$un.act}">{$un.title}</a></li>
                        </foreach>
                    </ul></td>
                <td valign="top" style="padding-left:27px;">
                    <div class="title_area">
                        <div class="title_left">站内消息 <a href="{:U('writemsg')}">写站内信</a></div>
                        <div class="title_right"><a href="__WEBURL__/user/index/{$url}?type=1"{$act1}>收到的站内信</a><span class="title_fgx">|</span><a href="__WEBURL__/user/index/{$url}?type=2"{$act2}>发出的站内信</a></div>
                    </div>

                    <empty name="list"><div class="nodata">暂无信息</div></empty>
                    <foreach name="list" item="tl">
                    <table width="100%" style="border-collapse:collapse;" border="1" cellspacing="0" bordercolor="#e4e3e1"  id="ordertable" class="sysmsg">
                        <tr>
                            <td bgcolor="#fafafa"><b><a href="{:U('readsysmsg',array('id'=>$tl['id']))}">{$tl.title}</a></b>&nbsp;&nbsp;<if condition="$tl.type eq 1"><span>系统消息</span></if> <if condition="$tl.ifread eq 0"><span>未读</span></if></td>
                            <td width="120" bgcolor="#fafafa">{$tl.create_time|date='Y-m-d H:i',###}</td>
                        </tr>
                        <tr>
                            <td bgcolor="#FFFFFF" colspan="2">{$tl.content} <a href="{:U('readsysmsg',array('id'=>$tl['id']))}">阅读</a></td>
                        </tr>
                    </table>
                    </foreach>

                    <div class="pager">{$Page}</div>

                </td>
            </tr>
        </table>
    </div>
</div>
    <Admintemplate file="Home/Public/footer"/>
</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>

<script>
    $(document).ready(function(){
        $('.b-dongtaiItem').each(function(i,val){
            if(i%3==0) $(this).addClass('b-dongtaiItem_first');
        });
        $('.b-dongtaiItem__pic').hover(function(){
            $(this).find('.b-itemMask').stop(true,true).fadeIn();
        },function(){
            $(this).find('.b-itemMask').stop(true,true).fadeOut();
        });
        $('.b-itemMask').on('click',function(){
            $('body').css({overflow:'hidden'});
            $('.b-pop').show();
        });
        $('.b-popDetail__closeBtn').on('click',function(){
            $('body').css({overflow:'auto'});
            $('.b-pop').hide();
        });
    });
</script>

</body>
</html>